<template>
	<view class="container">
		<view class="content" v-html="content"></view>
	</view>
</template>

<script>
	import app from '../../App.vue'
	export default({
		data(){
			return{
				content:'',
				id:''
			}
		},
		onLoad(options) {
			this.id = options.id
			this.getkeshidetail()
		},
		methods:{
			getkeshidetail(){
				let that = this,
				data={
					banner_id:that.id
				}
				app.post('api/banner/getBannerInfo',data).then(res=>{
					console.log(res)
					if(res.code == 1&& res.data !=''){
						that.content = res.data.replace(/\<img/g, '<img style="max-width:100%!important;height:auto;display:block;margin:10px 0;"')
					}
				})
			}
		}
	})
</script>

<style>
	.content{
		width: 100%;
		padding: 48rpx 32rpx 0;
		box-sizing: border-box;
	}
</style>
